package matlab;

/**
 * Data type.
 * @author risto
 *
 */
public enum ChunkType { 
	INT8(1), UINT8(2), INT16(3), UINT16(4), INT32(5), UINT32(6), 
	SINGLE(7), DOUBLE(9), INT64(12), UINT64(13), 
	MATRIX(14), COMPRESSED(15), UTF8(16), UTF16(17), UTF32(18);
	int value;
	private ChunkType(int value) { this.value = value; };
	public int getValue() { return value; }
	static ChunkType[] arr = { null, INT8, UINT8, INT16, UINT16, 
						  INT32, UINT32, SINGLE, null, DOUBLE, 
						  null, null, INT64, UINT64, MATRIX, 
						  COMPRESSED, UTF8, UTF16, UTF32 };			
	public static ChunkType valueOf(int value) { return arr[value]; }
}